FROM registry.cn-shenzhen.aliyuncs.com/hserver-base/java8-maven:base
WORKDIR /usr/local/src
COPY . /usr/local/src
RUN mvn clean
RUN mvn package -Dmaven.test.skip=true
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
ENTRYPOINT ["java","-jar","/usr/local/src/target/hserver-doc.jar"]